<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="hardcode2013.*" %>

<html>
	<head>
		<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
	</head>
	
	<body>
  
	<%@include file="include_header.jsp" %>
	
	<%
	if (profile != null && profile.getIsAdmin()) {
		%>		
	   	<fieldset>
			<legend>Activity Log</legend>
			<a href="/activitylog.jsp">View Activity Log</a><br>
	    </fieldset>
	    
	   	<fieldset>
			<legend>Deactivate User</legend>
		    <form action="/admin" method="post">
		      Target Username: <input type="text" name="target_username"><br>
		      <input type="hidden" name="action" value="deactivate_account">
		      <input type="hidden" name="redirect" value="/admin.jsp">
		      <input type="hidden" name="auth_key" value="<%= SessionUtil.getAuthKey(request) %>">
		      <input type="submit" value="Deactivate" />
		    </form>
	    </fieldset>
		<%
	}
	%>
	</body>
</html>